﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Pb;
public class ReliefModel : MonoBehaviour {
    public GameObject button;
	// Use this for initialization
	void Start () {
        UIEventListener.Get(button).onClick = ButtonCLick;
	}
	
    void ButtonCLick(GameObject button)
    {
        if (button.name == "GoldBoxBtn")
        {
            GetReliefMoneyRequest lg = new GetReliefMoneyRequest { };
            SocketManager socketManager = SocketManager.Instance;
            socketManager.SendProtobuf1(lg, MsgId.GetReliefMoneyRequest);
        }
    }
}
